package com.example.kotlin.lifecycle

import android.os.Bundle
import androidx.fragment.app.Fragment

/**
 * @ClassName: ReportFragment
 * @Description: java类作用描述
 * @Author: chenmengjia
 * @Date: 2022/2/3 9:59
 */
class ReportFragment : Fragment() {
    private var fragmentLifeCycle: FragmentLifecycle? = null
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        fragmentLifeCycle = FragmentLifecycle()

       // fragmentLifeCycle?.addListener(Player2("cmj",18,fragmentLifeCycle)


    }

    override fun onStart() {
        super.onStart()
        fragmentLifeCycle?.onStart()
    }

    override fun onDestroy() {
        super.onDestroy()
        fragmentLifeCycle?.onDestroy()
    }
}